<head>
<title>Your Order</title>
<script language="JavaScript">
<!--
function printPage() {
if (window.print) {
agree = confirm('Print this Invoice?');
if (agree) window.print(); 
   }
}
//-->
</script>
</head>

--- in the body ---
<a href="#" onClick="printPage()">Print Invoice</a>
